<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="display" uri="http://displaytag.sf.net" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Showing Tools Using Iterator Tag</title>
	<s:head />
</head>
<body>
<h2>Showing Tools Using Iterator Tag</h2>

<s:form action="iteratingSearch">
	<s:textfield label="Search by name" name="name" /><s:submit/>
	<s:textfield label="Search by nickname" name="nickname" /><s:submit/>
</s:form>

<s:form action="iterating">
	<s:submit value="Show All" />
</s:form>
<p/>



<table>  
    <tr>  
        <th>Name</th>  
        <th>Nickname</th>  
    </tr>  
	<s:iterator value="tools" >
		<tr>
			<td><s:property value="name" /></td>
			<td><s:property value="nickname" /></td>
		</tr><p/>
	</s:iterator>
</table>  

</body>
</html>